"""

@name:python学习
@author:yuki
@projectname:起步

"""
import random
lst1 = {"小张","小王","小红","小明","小强"}
lst2 = {"小张","小王","小红","小明","小强"}
for i in range(len(lst1)):
    x = random.sample(lst1,1)
    lst1.discard(x[0])
    if len(lst1) == 1 and set(lst1) & set(lst2):
        j = set(lst1) & set(lst2)
        lst2.discard(j[0])
        print(f"收礼物的人是{j}，他收到了来自{x}的礼物")
        break
    while True:
        j = random.sample(lst2,1)
        if x != j:
            lst2.discard(j[0])
            print(f"收礼物的人是{j}，他收到了来自{x}的礼物")
            break
